#!/bin/sh
#D2C SVM preprocess

#environment setup
pip install jieba
CUR_DIR=`pwd`
cd ..
git clone https://github.com/cjlin1/liblinear.git
cd $CUR_DIR

7z x ../dataset.tar.7z -o ../

python ./preprocess1.py
python ./preprocess2 > input.txt

../liblinear/train -s 0 -C -v 10 ./input.txt

